local kaijiangtuotu = fk.CreateSkill{
    name = "lingling__zhuzhanpai",
}
Fk:loadTranslationTable{
    ["lingling__zhuzhanpai"] = "主战派",
    [":lingling__zhuzhanpai"] = "回合结束时，若你本回合未使用【杀】，你可以视为使用【杀】。",
    ["#lingling__zhuzhanpai"] = "主战派：你可以视为使用【杀】",
}

kaijiangtuotu:addEffect(fk.TurnEnd,{
    can_trigger = function (self, event, target, player, data)
        return target == player and player:hasSkill(kaijiangtuotu.name) and #player.room.logic:getEventsOfScope(GameEvent.UseCard, 1, function (e)
            local use = e.data
            return use.from == player and use.card.trueName == "slash"
        end, Player.HistoryTurn) == 0
    end,
    on_cost = function (self, event, target, player, data)
        local use = player.room:askToUseVirtualCard(player,{
            skill_name = kaijiangtuotu.name,
            name = "slash",
            prompt = "#lingling__zhuzhanpai",
            skip = true,
        })
        if use then
            event:setCostData(self, use)
            return true
        end
    end,
    on_use = function (self, event, target, player, data)
        player.room:useCard(event:getCostData(self))
    end,
})

return kaijiangtuotu